package com.hrm.mapper;

import com.hrm.pojo.Job;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface JobMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Job record);

    int insertSelective(Job record);

    Job selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Job record);

    int updateByPrimaryKey(Job record);

    /**
     * 分页查找根据姓名动态
     * @param name
     * @return
     */
    List<Job> selectLikeName(String name);

    @Select("select * from job_inf")
    List<Job> getAllJob();
}